﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PlainChat.Models;

namespace PlainChat.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
            var t = new List<SnapModel>
                {
                    new SnapModel
                        {
                            ImageUrl =
                                "https://twimg0-a.akamaihd.net/profile_images/2871955427/977ea9fbb651bc2afa39fdc786343395.png",
                            Age = 28,
                            Description = "test",
                            RecievedSnaps = 15,
                            Username = "Drake"
                        },
                        new SnapModel
                            {
                                Age = 17,
                                Description = "Hi everyone, it's Justin. Snap me some interesting things, and i'll reply.",
                                ImageUrl = "http://media.tumblr.com/tumblr_md79xsDLzO1qdeu0k.jpg",
                                RecievedSnaps = 23000,
                                Username = "Justin Beiber"
                            }
                };
            return View(t);
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
